      <!DOCTYPE html
          PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html>
      <head>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
          <title>
              Referer facebook app
          </title>
           <link href="<?php echo $view->layoutUrl;?>css/dropdown/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
			<link href="<?php echo $view->layoutUrl;?>css/dropdown/themes/default/default.advanced.css" media="screen" rel="stylesheet" type="text/css" />
			
			<script type="text/javascript" src="<?php echo $view->layoutUrl;?>libs/JQuery/jquery.min.js"></script>
			<script type="text/javascript" src="<?php echo $view->layoutUrl;?>libs/JQuery/jquery-ui.custom.min.js"></script>
			<script type="text/javascript" src="<?php echo $view->layoutUrl;?>libs/JQuery/jquery.validate.js"></script>
                        <script type="text/javascript" src="<?php echo $view->layoutUrl;?>libs/JQuery/jquery.maskedinput-1.2.2.js"></script>
                        <script type="text/javascript" src="<?php echo $view->layoutUrl;?>libs/JQuery/jquery-ui-timepicker-addon.js"></script>                        
			
			<!-- block UI -->
			
			<script type="text/javascript" src="<?php echo $view->layoutUrl;?>libs/jquery.blockUI.js"></script>
			
                        <!-- tool tip -->
                        <script src="<?php echo $view->layoutUrl;?>libs/tooltip/jquery.bgiframe.js" type="text/javascript"></script>
                        <script src="<?php echo $view->layoutUrl;?>libs/tooltip/jquery.dimensions.js" type="text/javascript"></script>
                        <script src="<?php echo $view->layoutUrl;?>libs/tooltip/jquery.tooltip.js" type="text/javascript"></script>
                        <link rel="stylesheet" href="<?php echo $view->layoutUrl;?>libs/tooltip/jquery.tooltip.css" />
                        
                        <!-- open flash chart support -->
                        <script type="text/javascript" src="<?php echo $view->layoutUrl;?>libs/openflash/swfobject.js"></script>
                        
			<!--[if lt IE 7]>
			<script type="text/javascript" src="<?php echo $view->layoutUrl;?>js/jquery/jquery.dropdown.js"></script>
			<![endif]-->
			           
           
            <link rel="Shortcut Icon" href="<?php echo $view->layoutUrl;?>ico.ico" />       
			
			
			<link href="<?php echo $view->layoutUrl;?>css/style.css" rel="stylesheet" type="text/css" />
                        <link href="<?php echo $view->layoutUrl;?>css/main.css" rel="stylesheet" type="text/css" />
			<link href="<?php echo $view->layoutUrl;?>libs/JQuery/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
			           
           
      </head>
      <body>  
          <!-- start header -->
          <?php if($view->isLogined){?>
            <div style="float:right; padding-top:8px;padding-right:8px;">
            Welcome <span style="color:blue;font-weight:bolder;">
                <a href="?action=myaccount">
                <?php echo $view->user['name'];?>
                </a>
                (<a style="color:red;" href="?action=logout">Logout</a>)</span>
            </div>
<?php } ?>
	<center>
          <!-- end of header -->
          
          <div id="nav" style="height:33px;margin-bottom:8px;background-color:#F6F6F6;text-align:left;">
                  <ul class="dropdown dropdown-horizontal">
    <li class="active">
        <a href="?action=index">Dashboard</a>
    </li>
                      
    <li>
        <a class="dir" href="?action=userlist">Users</a>
        <ul>
            <li>
                <a href="?action=userlist">User List</a>
            </li>
        </ul>
    </li>
    
    <li>
        <a class="dir" href="?action=index">Data export</a>
        <ul>
            <li>
                <a href="?action=index">Export to CSV</a>
            </li>
        </ul>
    </li>
</ul> 
          </div>
          <div id="content"><?php echo $view->view_content; ?></div>
          <!-- start footer -->
          	</center>
                <hr class="bs1b" />
                <center>Powered by SlopeTracker. Server time: <?php echo date('d.m.Y H:i:s'); ?></center>
          <!-- end of footer -->
      </body>
      </html>
